{include file="public/header"}

<body>
    <div class="layui-fluid">
        <div class="layui-row">
            <form action="" method="post" class="layui-form layui-form-pane">
                <div class="layui-card layui-form" lay-filter="component-form-element">
                    <div class="layui-card-header">合同时间</div>
                    <div class="layui-card-body layui-row layui-col-space10">
                        <div class="layui-col-md12">
                            {$row.qishu|default='无'}
                        </div>
                    </div>
                </div>
                <div class="layui-card layui-form" lay-filter="component-form-element">
                    <div class="layui-card-header">快递单号</div>
                    <div class="layui-card-body layui-row layui-col-space10">
                        <div class="layui-col-md12">
                            {$row.kdorder|default='无'}
                        </div>
                    </div>
                </div>
                <div class="layui-card layui-form" lay-filter="component-form-element">
                    <div class="layui-card-header">包含客户</div>
                    <div class="layui-card-body layui-row layui-col-space10">
                        <div class="layui-col-md12">
                            {if !empty($row.names)}
                            {foreach $row.names as $m}
                            <span>{$m.name}</span>
                            {/foreach}
                            {/if}
                        </div>
                    </div>
                </div>
                <div class="layui-card layui-form" lay-filter="component-form-element">
                    <div class="layui-card-header">单号图片</div>
                    <div class="layui-card-body layui-row layui-col-space10">
                        <div class="layui-col-md12">
                            {if !empty($row.images)}
                            <div id="layer-photos-demo" class="layer-photos-demo">
                                {foreach $row.images as $m}
                                <img width="100%" layer-pid="" layer-src="{$m.url}" src="{$m.url}" />
                                {/foreach}
                            </div>
                            {/if}
                        </div>
                    </div>
                </div>
                {if !empty($row) && $row.status == 1}
                <a title="同意" onclick="open_statusup(this, '/shop/uploadtk_status', '{$row.id}', 2,'abc')" href="javascript:;"
                    class="layui-btn layui-btn-sm layui-bg-blue">
                    同意
                </a>
                <a title="驳回" onclick="open_statusup(this, '/shop/uploadtk_status', '{$row.id}', 3,'abc')" href="javascript:;"
                    class="layui-btn layui-btn-sm">
                    驳回下次报销重填
                </a>
                {/if}
            </form>
        </div>
    </div>
    {include file="public/footer"}